help scripting. lux.screenshot()?

Keyshot scripting rendering is in good use.
I need take a screenshot as a test.
lux.screenshot()
screenshot()
Can’t do it this way.
What should I do?

screenshot (…)
Take a screenshot of current realtime window state and return the path to it.